HEX
Server: nginx/1.26.0
System: Linux iZj6ceg0gjdkbpnmyl2cnnZ 5.15.60-1.el7.x86_64 #1 SMP Thu Aug 11 12:39:22 UTC 2022 x86_64
User: www (1000)
PHP: 7.0.33
Disabled: phpinfo,eval,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,pfsockopen,fsocket,fsockopen
Upload Files
File: /data/wwwroot/sites/multitrustcapital.com/www/wp-content/themes/Avada/includes/plugins/wpml.php
<?php
/**
 * WPML mods.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://theme-fusion.com
 * @package    Avada
 * @subpackage Core
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

add_filter( 'get_next_post_plus_join', 'avada_get_next_post_plus_join' );

add_filter( 'get_next_post_plus_where', 'avada_get_next_post_plus_where' );

add_filter( 'get_previous_post_plus_join', 'avada_get_next_post_plus_join' );

add_filter( 'get_previous_post_plus_where', 'avada_get_next_post_plus_where' );

/**
 * Avada WPML helper function.
 *
 * @param string $join The query to run.
 * @return string
 */
function avada_get_next_post_plus_join( $join ) {
	global $wpdb;
	$join .= "LEFT JOIN {$wpdb->prefix}icl_translations as t on t.element_id = p.ID";
	return $join;
}

/**
 * Avada WPML helper function.
 *
 * @param string $where The query to run.
 * @return string
 */
function avada_get_next_post_plus_where( $where ) {
	global $sitepress;
	$where .= "AND t.language_code = '" . $sitepress->get_current_language() . "'";
	return $where;
}

/* Omit closing PHP tag to avoid "Headers already sent" issues. */